<?php /* Smarty version 2.6.18, created on 2012-09-26 16:51:32
         compiled from includes/user.tpl */ ?>
<?php if ($this->_tpl_vars['config']['reg'] == 1): ?>

  <div id="user">

    <?php if ($this->_tpl_vars['user']['id'] != ""): ?>
              
      <p > <?php echo $this->_tpl_vars['lang']['welcome_back']; ?>
 <?php echo $this->_tpl_vars['user']['name']; ?>
 <?php echo $this->_tpl_vars['user']['last_name']; ?>
 </p>
      <div style="text-align:center; margin:10px;">
        <a href="?act=reg"><?php echo $this->_tpl_vars['lang']['view_profile']; ?>
</a> &nbsp;&nbsp;|&nbsp;&nbsp; <a href="?act=reg&action=<?php echo $this->_tpl_vars['lang']['logout_button']; ?>
"><?php echo $this->_tpl_vars['lang']['logout_button']; ?>
</a>
      </div>
    <?php else: ?>    
      <p ><?php echo $this->_tpl_vars['lang']['login_message']; ?>


        <a href="?act=reg&showReg=true;" ><?php echo $this->_tpl_vars['lang']['register_button']; ?>
</a>
      </p>  
      <form action="?act=reg" method="post" id="loginForm">
        <input type="hidden" name="return" value="<?php echo $_GET['return']; ?>
" />
        <table width="100%" border="0" cellspacing="3" cellpadding="3">
          <tr>
            <td><?php echo $this->_tpl_vars['lang']['email']; ?>
:</td>
            <td><input type="text" name="email" class="required email" value="<?php echo $_POST['email']; ?>
"/></td>
          </tr>
          <tr>
            <td><?php echo $this->_tpl_vars['lang']['password']; ?>
:</td>
            <td><input type="password" name="password" class="required" /></td>
          </tr>
          <tr>
            <td  colspan="2" >
              <input type="submit" name="action" value="<?php echo $this->_tpl_vars['lang']['login']; ?>
" />
              <a href="?act=password"><?php echo $this->_tpl_vars['lang']['reset_password']; ?>
</a>
            </td>
          </tr>
        </table>
      </form>   
             
    <?php endif; ?>

  </div> 

<?php endif; ?> 